<div class="login">
    <!-- 登录页面 -->
    <form class="d-b ta-c" name="form">
        <div class="form-line ta-l p-r">
            <span class="icon account va-t d-ib "></span>
            <!-- validator="phone"校验手机号码 -->
            <!-- ng-model="user.phone"把参数直接挂载在同一个对象上 -->
            <input name="phone" validator="phone,required" ng-model="user.phone" class="d-ib" type="text" placeholder="输入手机号码">
        </div>
        <div class="form-line ta-l p-r">
            <span class="icon lock va-t d-ib "></span>
            <!-- validator="password"校验密码 -->
            <input name="password" validator="password,required" ng-model="user.password" class="d-ib" type="password" placeholder="输入密码">
        </div>
        <!-- validation-submit="form"表单提交 -->
        <button class="login-btn" validation-submit="form" ng-click="submit()">登录</button>
        <button class="register-btn" ui-sref="register">跳转到注册页</button>
    </form>
</div>














